using System;
using System.ComponentModel.DataAnnotations;

namespace RBDD.Embol.AccesoDatos.Entidades
{
 public partial class Persona
 {
     public Persona()
     {
     }
     #region foreign Keys

     public int DireccionId_FK {get;set;}
     private Direccion DireccionId_obj ;
     public virtual Direccion Direccion
      {
          get { return DireccionId_obj; }
          set {
                DireccionId_obj = value;
                if (DireccionId_obj != null) DireccionId_FK = DireccionId_obj.Id; 
          }
      }
     #endregion
     public virtual int   Id { get; set;}

     [StringLength(50, ErrorMessage = "{0} debe tener al menos {2} caracteres.", MinimumLength = 2)]
     [Display(Name = "Nombre")]
     public virtual string   Nombre { get; set;}

     [StringLength(50, ErrorMessage = "{0} debe tener al menos {2} caracteres.", MinimumLength = 2)]
     [Display(Name = "ApellidoPaterno")]
     public virtual string   ApellidoPaterno { get; set;}

     [StringLength(50, ErrorMessage = "{0} debe tener al menos {2} caracteres.", MinimumLength = 2)]
     [Display(Name = "ApellidoMaterno")]
     public virtual string   ApellidoMaterno { get; set;}

     [DataType(DataType.Date)]
     [Display(Name = "FechaNacimiento")]
     public virtual DateTime   FechaNacimiento { get; set;}

     [StringLength(15, ErrorMessage = "{0} debe tener al menos {2} caracteres.", MinimumLength = 2)]
     [Display(Name = "CedulaIdentidad")]
     public virtual string   CedulaIdentidad { get; set;}

     [StringLength(18, ErrorMessage = "{0} debe tener al menos {2} caracteres.", MinimumLength = 2)]
     [Display(Name = "Telefono")]
     public virtual string   Telefono { get; set;}

     [StringLength(15, ErrorMessage = "{0} debe tener al menos {2} caracteres.", MinimumLength = 2)]
     [Display(Name = "Celular")]
     public virtual string   Celular { get; set;}

     [StringLength(50, ErrorMessage = "{0} debe tener al menos {2} caracteres.", MinimumLength = 2)]
     [Display(Name = "Email")]
     public virtual string   Email { get; set;}
 }
}

